import request from '@/utils/request'

// 查询EduBanner列表
export function listEduBanner(query) {
  return request({
    url: '/api/v1/platform/bannerList',
    method: 'get',
    params: query
  })
}

// 查询EduBanner详细
export function getEduBanner(bannerId) {
  return request({
    url: '/api/v1/platform/banner/' + bannerId,
    method: 'get'
  })
}

// 新增EduBanner
export function addEduBanner(data) {
  return request({
    url: '/api/v1/platform/banner',
    method: 'post',
    data: data
  })
}

// 修改EduBanner
export function updateEduBanner(data) {
  return request({
    url: '/api/v1/platform/banner',
    method: 'put',
    data: data
  })
}

// 删除EduBanner
export function delEduBanner(bannerId) {
  return request({
    url: '/api/v1/platform/banner/' + bannerId,
    method: 'delete'
  })
}
